/**
* Copyright (C) 2018-2020
* All rights reserved, Designed By www.gzchengguo.cn
* 注意：
* 本软件为www.gzchengguo.cn开发研制，未经购买不得商用
* 购买后可获得全部源代码（禁止转卖、分享、上传到码云、github等开源平台）
* 一经发现盗用、分享等行为，将追究法律责任，后果自负
*/
package link.chengguo.orangemall.modules.shop.rest;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import link.chengguo.orangemall.api.ApiResult;
import link.chengguo.orangemall.modules.service.OrangeStoreMarketingAreaService;
import link.chengguo.orangemall.modules.service.dto.OrangeStoreMarketingAreaQueryCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* @author chengguo
* @date 2020-08-19
*/
@Api(tags = "营销区域")
@RestController
@RequestMapping("/orangeStoreMarketingArea")
public class OrangeStoreMarketingAreaController {

    @Autowired
    private OrangeStoreMarketingAreaService orangeStoreMarketingAreaService;


    @GetMapping
    @ApiOperation("查询营销区域")
    public ApiResult getOrangeStoreMarketingAreas(OrangeStoreMarketingAreaQueryCriteria criteria, Pageable pageable){
        return ApiResult.ok(orangeStoreMarketingAreaService.queryAll(criteria,pageable));
    }

}
